package com.acxiom.bsh.task;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import com.acxiom.bsh.service.ApiTokenTask;

@Component
public class ScheduleTask {

	@Autowired
	ApiTokenTask apiTokenTask;
	
	@Scheduled(cron = "${task.schedule.cron}")
	public void execute() {
		apiTokenTask.init();
	}
}
